
--[[

    slimui - Copyright (c) 2011 atom0s, All rights reserved.

    See Copyright notice in slimui.lua
    
]]--

class 'Splitter: CustomControl' { ... };

----------------------------------------------------------------------------------
-- func: Splitter.__init__
-- desc: Constructor called when this object is first created.
----------------------------------------------------------------------------------
function Splitter.__init__( self )
    CustomControl.__init__( self );
end

----------------------------------------------------------------------------------
-- func: Splitter:Create
-- desc: Creates a new Splitter object.
----------------------------------------------------------------------------------
function Splitter:Create( parent )
    if parent == nil or parent._object == nil then
        slimui:err( 'Splitter:Create - parent must be set to create a control!' );
    end
    
    self._object = createSplitter( parent._object );
    
    if self._object == nil then
        slimui:err( 'Splitter:Create - failed to initialize a new object.' );
    end
    
    return self;
end


--[[ Debug information. ]]--------------------------------------------------------
if ( slimui:isdebug() == true ) then
    slimui:msg( '(Control) splitter.lua successfully loaded.' );
end